Public Class frmForm2
  Inherits System.Windows.Forms.Form
  Dim OtherObject As New frmLocalScope()   ' definicja instancji obiektu
                                           ' zewntrznego

  Private Sub frmForm2_Load(ByVal sender As System.Object, ByVal e As _
              System.EventArgs) Handles MyBase.Load

    txtValue.Text = CStr(OtherObject.MyVariable)

  End Sub
End Class
